﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using RenAi.Medical.DAL;
using RenAi.Medical.Model;

namespace RenAi.Medical.BLL
{
  public   class DocBll
    {
      //实例化
      DocDAL dal = new DocDAL();

         /// <summary>
      /// 获取医生信息
      /// </summary>
      /// <returns></returns>
      public DataTable GetDocAll()
      {
          return dal.GetDocAll();
      }
        /// <summary>
      /// 根据编号删除医生信息
      /// </summary>
      /// <param name="Doctor_Id"></param>
      /// <returns></returns>
      //public int DelDocByID(string Doctor_Id)
      //{
      //    return dal.DelDocByID(Doctor_Id);
      //}
      public int DelDoc(string Doctor_Id)
      {
          return dal.DelDoc(Doctor_Id);
      }

       /// <summary>
      /// 根据医生编号，获取要修费的医生信息
      /// </summary>
      /// <param name="Doctor_Id"></param>
      /// <returns></returns>
      public DataTable GetDocByID(string docid)
      {
          return dal.GetDocByID(docid);
      }

       /// <summary>
      /// 根据医生编号，修改医生信息
      /// </summary>
      /// <param name="d"></param>
      /// <returns></returns>
      public int UpDocByID(Doctor d)
      {
          return dal.UpDocByID(d);
      }

        /// <summary>
      /// 添加医生信息
      /// </summary>
      /// <param name="d"></param>
      /// <returns></returns>
      public int AddDoctor(Doctor d)
      {
          return dal.AddDoctor(d);
      }
    }
}
